package com.yonyou.cyxdms.sysAuth.service.controller;

import com.yonyou.cyx.framework.controller.base.BaseController;
import com.yonyou.cyxdms.sysAuth.service.service.HomePageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author ：quankk
 * @date ：Created in 2019/7/8 17:59
 * @description：homePage pc迁移
 */
@Api(value = "登录HomePageController", tags = {"登录HomePageController"})
@RestController
@RequestMapping("/homePage")
public class HomePageController extends BaseController {

    // 定义日志接口
    private static final Logger logger = LoggerFactory.getLogger(HomePageController.class);

    @Autowired
    private HomePageService homePageService;
    /**
     * @author     ：quankk
     * @date       ：2019/7/8 16:18
     * @description： PC迁移
     */
    @RequestMapping(value = "/queryForSalesHome", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    @ApiOperation(value = " PC迁移")
    @ApiImplicitParams({@ApiImplicitParam(value = "用户id", name = "userId", required = true, dataType = "string", paramType = "header")})
    public Map<String, Object> queryForSalesHome() {
        return homePageService.queryForSalesHome();
    }

}
